<?php

	require_once "lib/regExp.class.php";

	$source = fopen('data/data.txt', "r");

	$matches = array();

    while ($line = fgets ($source)) {

        if ($line !== FALSE){

        	$temp =  RegExp::getInstance()->threeCap($line);
        	
        	if(!empty($temp)){
        		
        		$matches = array_merge($matches, $temp);
        		
        	}
        	
        }else{
        	
        	print ("FALSE\n");
        }
        
    }

    fclose ($source);

    echo implode('', $matches);